package com.starter.test.utiltest.controller;

import com.luban.util.DateConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/demo")
public class DemoController {

	@Autowired
	private DateConfig dateConfig;

	@RequestMapping("/test")
	public String test() {
		String newString = dateConfig.getUtil().getLocalTime();
		log.info("now: " + newString);
		return newString;
	}

}
